package com.yhsoft.mall.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 模块信息表
 * </p>
 *
 * @author yyyyyyyh
 * @since 2023-10-08
 */
@TableName("mall_module_info")
@Data
public class ModuleInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("模块名称")
    private String moduleName;

    @ApiModelProperty("单位ID")
    private Integer companyId;

    @ApiModelProperty("小程序ID")
    private String appId;

    @ApiModelProperty("是否是专题的模块 0不是，1是，默认0")
    private Integer isTopic;

    @ApiModelProperty("是否是专题的模块 0不是，1是，默认0")
    private Integer topicId;

    @ApiModelProperty("是否显示 0:不显示 1：显示")
    private Integer isEnable;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("逻辑删除 0:未删除 1：已删除")
    @TableField(fill = FieldFill.INSERT)
    private Integer deleted;

    @ApiModelProperty("创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime updatedTime;

}
